@layout("/common/_container.html"){
<div class="row">
	<div class="col-sm-12">
		<div class="ibox float-e-margins">
			<div class="ibox-title">
				<h5>用户管理</h5>
			</div>
			<div class="ibox-content">
				<div class="row row-lg">
					<div class="col-sm-12">
						<div class="row">
							<div class="col-lg-10 col-sm-12">
								<div class="row">
									<div class="col-lg-10 col-sm-9">
										<div class="row">
											<div class="col-lg-4 col-sm-3">
												<#InputCon id="pRoleName" name="角色"
														hidden="pRole" readonly="readonly"
														clickFun="MgrUser.showRoleSelectTree(); return false;"
														style="background-color: #ffffff !important;"
														selectFlag="true" selectId="pcodeTreeDiv" selectTreeId="pcodeTree" selectStyle="width:200px !important;"/>
											</div>
											<div class="col-lg-4 col-sm-3">
												<#NameCon id="name" name="用户" placeholder="用户名/姓名/手机/邮箱"/>
											</div>
											<div class="col-lg-4 col-sm-6">
												<#TimeScope id="create" name="创建日期" isTime="false"/>
											</div>
										</div>
									</div>
									<div class="col-lg-2 col-sm-3">
										<div class="row">
											<div class="col-lg-12 col-sm-12">
												<#button name="搜索" icon="fa-search" clickFun="MgrUser.search()"/>
												<#button name="重置" icon="fa-trash" clickFun="MgrUser.resetSearch()" space="true"/>
											</div>
										</div>
									</div>
								</div>
								<div class="hidden-xs" id="managerTableToolbar" role="group">
									@if(shiro.hasPermission("/mgr/add")){
									<#button name="添加" icon="fa-plus" clickFun="MgrUser.openAddMgr()"/>
									@}
									@if(shiro.hasPermission("/mgr/edit")){
									<#button name="修改" icon="fa-edit" clickFun="MgrUser.openChangeUser()" space="true"/>
									@}
									@if(shiro.hasPermission("/mgr/delete")){
									<#button name="删除" icon="fa-remove" clickFun="MgrUser.delMgrUser()" space="true"/>
									@}
									@if(shiro.hasPermission("/mgr/reset")){
									<#button name="重置密码" icon="fa-refresh" clickFun="MgrUser.resetPwd()" space="true"/>
									@}
									@if(shiro.hasPermission("/mgr/open")){
									<#button name="开启" icon="fa-check-circle" clickFun="MgrUser.openAccount()" space="true"/>
									@}
									@if(shiro.hasPermission("/mgr/close")){
									<#button name="关闭" icon="fa-warning" clickFun="MgrUser.closeAccount()" space="true"/>
									@}
									@if(shiro.hasPermission("/mgr/setRole")){
									<#button name="角色分配" icon="fa-user-secret" clickFun="MgrUser.roleAssign()" space="true"/>
									@}
								</div>
								<#table id="managerTable"/>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script src="${ctxPath}/static/modular/system/user/user.js"></script>
<script>
    laydate.render({
        elem: '#create_start_time'
    });
    laydate.render({
        elem: '#create_end_time'
    });
</script>
@}
